home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_olv_drawface.cog < prev    next >
Text File  |  1999-11-15  |  798b  |  58 lines

  1. # Jones 3D Cog Script
  2. #
  3. # olv_drawface.cog
  4. #
  5. # Cog description
  6. #
  7. # [DS]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ===================================================================
  12. symbols
  13.  
  14. message    startup
  15. message    entered
  16. message    exited
  17.  
  18.  
  19. surface    drawface
  20. sector    on_sec0
  21. sector    on_sec1
  22. sector    off_sec0
  23.  
  24. thing        player                local
  25.  
  26. end
  27. # -------------------------------------------------------------------
  28.  
  29. code
  30.  
  31. startup:
  32.     player = GetLocalPlayerThing();
  33.     return;
  34.  
  35. entered:
  36.     if(getsenderref() == off_sec0)
  37.     {
  38.     SetFaceGeoMode(drawface, 0);
  39.     }
  40.     if(getsenderref() == on_sec1)
  41.     {
  42.     SetFaceGeoMode(drawface, 4);
  43.     }
  44.     return;
  45.  
  46. exited:
  47.     if(getsenderref() == on_sec0)
  48.      {
  49.     SetFaceGeoMode(drawface, 4);
  50.     }
  51.     return;
  52.  
  53. end
  54.  
  55.  
  56.  
  57.  
  58.